<?php
include 'Config.php';
include 'DB.php';
$fetch = new Fetch($config);
@$id = $_GET['goods_id'];
$fetch->delByID('goods', 'goods_id', $id);
Header("Location:../View/goods-manage.php");
if (!isset($_POST)) return;
@$fetch->insertGoodsData('goods', $_POST);
Header("Location:../View/goods-manage.php");